package com.showsu.editor.entity.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: William
 * @Date: 2024-09-12 14:19:04
 * @Description:
 */
@Data
@TableName("tbl_sys_log")
public class TblSysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer logId;
    /**
     * 动作：register、login、read、create、update、delete
     */
    private String action;
    /**
     * 操作详情
     */
    private String msg;
    /**
     * 客户端ip
     */
    private String clientIp;
    /**
     * 客户端操作系统
     * client_os
     */
    private String clientOs;
    /**
     * 客户端浏览器
     * client_browser
     */
    private String clientBrowser;
    /**
     * 客户端来源
     * client_origin
     */
    private String clientOrigin;
    /**
     * 操作时间
     */
    private Date createDate;
    /**
     * 操作人id
     */
    private Long createUser;
    /**
     * 操作人名字
     */
    private String createUserName;

    public TblSysLog() {
    }

        public TblSysLog(String action, String msg, String clientIp, String clientOs, String clientBrowser, String clientOrigin, Long createUser, String createUserName) {
        this.action = action;
        this.msg = msg;
        this.clientIp = clientIp;
        this.clientOs = clientOs;
        this.clientBrowser = clientBrowser;
        this.clientOrigin = clientOrigin;

        this.createUser = createUser;
        this.createUserName = createUserName;
    }

}
